package cn.javaxc.boot.mvc;

import java.util.*;
import javax.sql.DataSource;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.beans.factory.annotation.Autowired;


import cn.javaxc.mvcwork.util.helper.IBaseDAO;
import org.springframework.core.io.Resource;
import cn.javaxc.mvcwork.framework.actions.MVCResults;
import cn.javaxc.mvcwork.util.common.SpringUtils;
import cn.javaxc.mvcwork.action.dao.BatisDAO;
@DependsOn("mvcSpringUtils")
@Configuration
public class SystemInitializer 
{ 
	@Autowired
	private Environment env;
	
	@Primary
	@Bean("baseDAO")
	@Scope("prototype")
	public IBaseDAO baseDAO() {
		return new BatisDAO();
	}
	@Bean
	public MVCResults mvcResults() {
		MVCResults ret=new MVCResults();
		return ret;
	}
};
